文件存放位置
install_package -> phpcms -> languages(语言包)
-> libs(系统的类)-> model(模型)-> plugin(插件)-> templates(模板文件夹*) -> default(系统默认模板文件夹)-> content(主要使用的内容)install_package -> statics(*) -> css/js/images/plugininstall_package -> uploadfile(上传的文件)install_package -> caches(缓存文件)
header.html
{ if isset($SEO['title']) && !empty($SEO['title'])}{ $SEO['title']}{/if}{ $SEO['site_title']} 天启网络发展有限公司
top.css
@charset "utf-8";/* CSS Document */.logo{ float:left; width:200px; height:80px; margin-left:30px; margin-top:10px;}.ming{ float:left; margin-left:10px; margin-top:50px; font-weight:bold; font-size:16px; color:#0071ba;}.menu{ text-align:center; width:100%; height:50px; font-size:18px; font-weight:bold; margin-top:0px; color:#FFF; background-color:#0071ba;}.list{ line-height:50px; vertical-align:middle; width:180px; height:50px;}#list{ float:left; margin-left:200px;}.menus{ float:left;}.erji{ height:105px; width:180px; position:relative; display:none; }.erjis{ line-height:35px; vertical-align:middle; height:35px; width:180px; font-size:16px; background-color:#F30;}.ab:link{ color:#FFF; text-decoration:none;}.ab:visited{ color:#FFF; text-decoration:none;}.ab:hover{ color:#FF0; text-decoration:none;}.ab:active{ color:#FF0; text-decoration:none;}.bottom{ width:1350px; height:150px; background-color:#0071ba; text-align:center; color:#FFF;}.a{ padding-top:50px;}.b{ padding-top:10px;}
footer.html
天启网络发展有限公司版权所有 鲁ICP备12345678号山东省淄博市张店共青团西路23号(原淄博市房管局大楼)A座4层 电话:0533-3113118
index.html
{template "content","header"}{pc:content action="position" posid="18" order="listorder DESC" thumb="1" num="3"} {loop $data $r} { /loop} { /pc}最新公告{template "content","footer"}{pc:content action="lists" catid="10" order="updatetime DESC" num="6" return="info"} {loop $info $n}{ $CATEGORYS[10]['catname']}. {str_cut($n['title'],92)}{ /loop} { /pc}{pc:content action="lists" catid="6" order="updatetime DESC" num="6" return="infos"} {loop $infos $m}{ $CATEGORYS[6]['catname']}. {str_cut($m['title'],92)}{ /loop} { /pc}
index.css
@charset "utf-8";/* CSS Document */.{ text-align:center;}a:link{ color:#0071ba; text-decoration:none;}a:visited{ color:#0071ba; text-decoration:none;}a:hover{ color:#F30; text-decoration:none;}a:active{ color:#F30; text-decoration:none;}.b{ margin-left:50px; width:1200px; height:300px;}.lunbo{ display:none;}.c{ margin-left:50px; width:1200px; height:60px; margin-top:10px;}.c1{ width:1200px; height:30px; color:#0071ba; font-weight:bold; background-color:#f4f4f4}.c11{ width:100px; height:25px; padding-top:5px;}.c2{}.d{ margin-left:50px; width:1200px; height:390px; margin-top:10px;}.d1{ float:left; width:390px; height:390px;}.d11{ width:390px; height:80px;}.d12{ width:390px; height:330px; margin-top:3px;}.d2{ float:left; width:800px; height:390px; margin-left:10px; text-align:left;}.d21{ width:800px; height:230px;}.d211{ float:left; width:500px; height:230px;}.d212{ float:left; width:290px; height:230px; margin-left:10px;}.d22{ width:800px; height:165px; margin-top:10px;}.lunbos{ display:none;}.e{ margin-left:50px; width:1200px; height:300px; margin-top:35px;}.e1{ width:1200px; height:35px; background-color:#f4f4f4;}.e2{ margin-top:10px; float:left; width:300px; height:300px;}.e21{ width:300px; height:35px; color:#0071ba; font-weight:bold; font-size:20px;}.e22{ width:300px; height:150px;}.e23{ margin-top:15px; width:300px; height:50px;}.e24{ width:300px; height:50px; color:#0071ba; margin-left:110px; font-size:15px;}.z{ height:35px; font-size:15px; background-color:#f4f4f4;}.z1{ float:left; width:100px; height:25px; font-size:20px; margin-top:5px; margin-left:10px; font-weight:bold; color:#0071ba;}.z2{ float:right; margin-right:10px; width:50px; height:25px; color:#0071ba; font-size:15px; margin-top:10px;}.z3{ padding-left:5px; height:30px; line-height:30px; vertical-align:middle; margin-top:3px;}
lunbo.js
// JavaScript Documentvar n=0;//当前要显示的图片索引var m=0;function ShowNow(){ var img=$(".lunbo");//找到所有class为lunbo的图片 //隐藏素有图片 img.css("display","none"); //显示第n条 img.eq(n).css("display","block"); if(n>=img.length-1) { n=0; } else { n++; } var imgs=$(".lunbos");//找到所有class为lunbo的图片 //隐藏素有图片 imgs.css("display","none"); //显示第n条 imgs.eq(m).css("display","block"); if(m>=imgs.length-1) { m=0; } else { m++; }}//间隔多久执行一次window.setInterval("ShowNow()",1000);
category.html
{template "content","header"}{template "content","footer"}{ if $CATEGORYS[$catid]['parentid']==0} { else} {/if}栏目列表{pc:content action="category" catid="$parentid" num="10" siteid="$siteid" order="listorder ASC" return="data1"} {loop $data1 $v}{ $v[catname]}{pc:content action="category" catid="$v[catid]" num="10" siteid="$siteid" order="listorder ASC" return="data"} {loop $data $r}{ $r[catname]}{ /loop} { /pc} { /loop} { /pc}{catpos($catid)}文章列表
{pc:content action="lists" catid="$catid" num="10" order="id DESC" page="$page"} {loop $data $r}{ date('Y-m-d H:i:s',$r[inputtime])}--{ $r[title]}{ /loop}{ $pages}{ /pc}
list.html
{template "content","header"}{template "content","footer"}{ if $CATEGORYS[$catid]['parentid']==0} { else} {/if}栏目列表{pc:content action="category" catid="$parentid" num="10" siteid="$siteid" order="listorder ASC" return="data1"} {loop $data1 $v}{ $v[catname]}{pc:content action="category" catid="$v[catid]" num="10" siteid="$siteid" order="listorder ASC" return="data"} {loop $data $r}{ $r[catname]}{ /loop} { /pc} { /loop} { /pc}{catpos($catid)}文章列表
{pc:content action="lists" catid="$catid" num="10" order="id DESC" page="$page"} {loop $data $r}{ date('Y-m-d H:i:s',$r[inputtime])}--{ $r[title]}{ /loop}{ $pages}{ /pc}
list.css
/* CSS Document */.z{ width:1200px; height:700px; margin-left:70px;}.a{ width:1200px; height:200px;}.b{ float:left; width:230px; line-height:30px; margin-top:20px; font-weight:bold;}.b1{ height:39px; width:235px; background-color:#f4f4f4; font-size:20px; line-height:39px; vertical-align:middle; font-weight:bold; text-align:center; color:#0071ba;}.b2{ margin-left:20px; line-height:32px; vertical-align:middle; padding-top:5px;}.c{ padding-left:20px; width:950px; float:left; margin-top:32px;}.c1{ font-weight:bold;}.c2{ width:800px; margin-left:50px; font-size:22px;}a:link{ color:#0071ba; text-decoration:none;}a:visited{ color:#0071ba; text-decoration:none;}a:hover{ color:#F30; text-decoration:none;}a:active{ color:#F30; text-decoration:none;}
show.html
{template "content","header"}{template "content","footer"}{ if $CATEGORYS[$catid]['parentid']==0} { else} {/if}相关文章{pc:content action="lists" catid="$catid" num="10" order="id DESC" page="$page"} {loop $data $r}{ $r[title]}{ /loop}{ $pages}{ /pc}{catpos($catid)}正文
{ $title}来源:{ $copyfrom} 发布时间:{ $inputtime} 阅读次数:{
$description}{
$content}{ $pages}
show.css
/* CSS Document */.z{ width:1200px; margin-left:70px;}.a{ width:1200px; height:200px;}.b{ float:left; width:235px; line-height:30px; margin-top:20px; font-size:14px; font-weight:bold;}.b1{ height:39px; width:235px; background-color:#f4f4f4; font-size:20px; line-height:39px; vertical-align:middle; font-weight:bold; text-align:center; color:#0071ba;}.b2{ line-height:32px; vertical-align:middle; padding-top:5px;}.c{ padding-left:15px; width:950px; float:left; margin-top:22px;}.c1{ font-weight:bold;}.c2{ font-weight:bold; font-size:30px; color:#0071ba; text-align:center;}.c3{ color:#999; height:60px; line-height:60px; vertical-align:middle; text-align:center;}.c4{ width:950px; margin-top:20px; text-align:center;}.c5{ width:1200px; height:100px; margin-left:300px; margin-top:35px;}a:link{ color:#0071ba; text-decoration:none;}a:visited{ color:#0071ba; text-decoration:none;}a:hover{ color:#F30; text-decoration:none;}a:active{ color:#F30; text-decoration:none;}